import api from '@/api/api'

const sentimentManageRoles = {
  name: '舆情管理',
  role: '/sentimentManager',
  children: [
    {
      name: '敏感词管理',
      role: '/sensitivity',
      api: [api.wordSensitivityList],
      children: [
        {
          name: '列表',
          role: '/sensitivity/list',
          api: [api.wordSensitivityList],
        },
        {
          name: '详情',
          role: '/sensitivity/get',
          api: [api.wordSensitivityGet],
        },
        {
          name: '添加',
          role: '/sensitivity/add',
          api: [api.wordSensitivitySave],
        },
        {
          name: '修改',
          role: '/sensitivity/edit',
          api: [api.wordSensitivityUpdate],
        },
        {
          name: '删除',
          role: '/sensitivity/delete',
          api: [api.wordSensitivityDelete],
        }
      ]
    },
    {
      name: '采集管理',
      role: '/collection',
      children: [
        {
          name: '采集列表',
          role: '/collectionmanage',
          api: [api.collectList],
          children: [
            {
              name: '列表',
              role: '/collectionmanage/list',
              api: [api.collectList]
            },
            {
              name: '添加',
              role: '/collectionmanage/save',
              api: [api.collectSave]
            },
            {
              name: '详情',
              role: '/collectionmanage/get',
              api: [api.collectGet]
            },
            {
              name: '修改',
              role: '/collectionmanage/update',
              api: [api.collectUpdate]
            },
            {
              name: '删除',
              role: '/collectionmanage/delete',
              api: [api.collectDelete]
            },
            {
              name: '开始',
              role: '/collectionmanage/start',
              api: [api.collectStart]
            },
            {
              name: '暂停',
              role: '/collectionmanage/suspend',
              api: [api.collectPause]
            },
            {
              name: '停止',
              role: '/collectionmanage/stop',
              api: [api.collectEnd]
            },
          ]
        },
        {
          name: '采集历史记录',
          role: '/collectionhistory',
          api: [api.collectHistoryLIst],
          children: [
            {
              name: '列表',
              role: '/collectionhistory/list',
              api: [api.collectHistoryLIst]
            },
            {
              name: '删除',
              role: '/collectionhistory/delete',
              api: [api.collectHistoryDelete]
            },
          ]
        },
        {
          name: '采集进度查看',
          role: '/collectionspeed/view',
          api: [api.collectSpeedData]
        },
      ]
    }
  ]
}
export default sentimentManageRoles;
